﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="Feedback" CodeBehind="Feedback.aspx.cs" %>
<%@ Register Assembly="AjaxControlLib" Namespace="AjaxControlLib" TagPrefix="cc2" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Client Meeting Tool - Feedback </title>
    <link type="text/css" href="NAC.css" rel="stylesheet">
    <style>
        body
        {
            font-family: Arial, Helvetica, sans-serif;
            font-size: 9pt;
        }

        .Button
        {
            background-color: #1e8ce1;
            border: #0d5b97 1px solid;
            color: #FFFFFF;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 9pt;
            padding: 3px;
        }

        .Button_TopPad
        {
            background-color: #1e8ce1;
            border: #0d5b97 1px solid;
            color: #FFFFFF;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 9pt;
            padding: 3px;
            margin-top: 5px;
        }

        .Button_TBPad
        {
            background-color: #1e8ce1;
            border: #0d5b97 1px solid;
            color: #FFFFFF;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 9pt;
            padding: 3px;
            margin-top: 5px;
            margin-bottom: 5px;
        }

        .Button_GridTBRPad
        {
            background-color: #1e8ce1;
            border: #0d5b97 1px solid;
            color: #fff;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 9pt;
            margin-top: 5px;
            margin-bottom: 5px;
            margin-right: 5px;
        }

        .tab1
        {
            background-image: url(Images/tabbg1.jpg);
            background-repeat: repeat-x;
            color: #000000;
        }

        .tab2
        {
            background-image: url(Images/tabbg2.jpg);
            background-repeat: repeat-x;
            color: #000000;
        }

        .overlay
        {
            position: absolute;
            background-color: white;
            top: auto;
            left: auto;
            width: 100%;
            height: 100%;
            opacity: 0.8;
            -moz-opacity: 0.8;
            filter: alpha(opacity=60);
            -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
            z-index: 10000;
            text-align: center;
            padding-top: 25%;
        }

     
        .HeaderStyle
        {
            border-top-color: #adc5eb;
            border-left-color: #adc5eb;
            border-top-width: 1px;
            border-left-width: 1px;
            border-top-style: Solid;
            border-left-style: Solid;
            background-image: url("/ig_common/images/Office2003BlueBG.png");
            background-repeat: repeat-x;
            Color: #e1e8f5;
            font-family: Arial;
            font-size: x-small;
            background-color: rgb(17, 69, 158);
        }
    </style>



</head>
<body>
    <form id="form1" runat="server">
        <%--<cc2:Banner ID="Banner1" runat="server" Width="100%" />--%>
        <asp:ScriptManager ID="scm" runat="server">
        </asp:ScriptManager>
        <div>
            <asp:UpdateProgress ID="uprgProgressBar" runat="server" DynamicLayout="true">
                <ProgressTemplate>
                    <div class="overlay">
                        <img src="_includes/images/prog.gif" />
                        Loading...
                    </div>
                </ProgressTemplate>
            </asp:UpdateProgress>
            <asp:UpdatePanel ID="upnlFeedback" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
                    <table id="tblHeader" cellpadding="0" cellspacing="0" width="100%">
                        <tr style="height: 10px;">
                            <td></td>
                        </tr>
                        <tr>
                            <td class="GroupHeader" style="height: 18px; text-align: left;" valign="middle">Feedback
                            </td>
                        </tr>
                        <tr>
                            <td>&nbsp;
                            <asp:ValidationSummary ID="vSummFeedback" runat="server" HeaderText="Please fix the following errors"
                                ValidationGroup="Submitt" />
                                <asp:Label ID="lblLoadMessage" runat="server"></asp:Label>
                            </td>
                        </tr>
                    </table>
                    <%--  <asp:Panel ID="plAlreadySubmitt" runat="server" Visible="false" BackColor="#CCCCCC"
            Height="66px">
            <table align="center">
                <tr>
                    <td>
                        
                    </td>
                </tr>
                <tr>
                    <td align="center">
                        <%--<asp:Button ID="btnCloe" runat="server" OnClientClick="Close();" Text="Exit" CssClass="Button"/
                        <input id="btnClose" style="width: 123px;" type="button" class="Button" onclick="javascript:Close();"
                            value="Close" runat="server" />
                    </td>
                </tr>
            </table>
        </asp:Panel>--%>
                    <asp:Panel ID="plDetails" runat="server" Width="100%">
                        <table id="tblDetails" cellpadding="0" cellspacing="0" style="margin-left: 10px; width: 98%">
                            <tr style="padding-bottom: 5px;">
                                <td style="width: 25%;">Company Name
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlCompanyName" runat="server" Width="305px" DataTextField="Office"
                                        DataValueField="Office" CssClass="RequiredField">
                                    </asp:DropDownList>
                                    <asp:RequiredFieldValidator ID="rfvCompanyName" runat="server" ControlToValidate="ddlCompanyName"
                                        ErrorMessage="Please select a company name." InitialValue="0" ValidationGroup="Submitt">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr style="padding-bottom: 5px;">
                                <td>Host
                                </td>
                                <td>
                                    <asp:TextBox ID="txtHost" runat="server" Width="300px" CssClass="RequiredField" MaxLength="100">
                                    </asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvHost" runat="server" ControlToValidate="txtHost"
                                        ErrorMessage="Please enter Host." InitialValue="" ValidationGroup="Submitt">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr style="padding-bottom: 5px;">
                                <td>TAL
                                </td>
                                <td>
                                    <asp:TextBox ID="txtTAL" runat="server" Width="300px" CssClass="RequiredField" MaxLength="100">
                                    </asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvTAL" runat="server" ControlToValidate="txtTAL"
                                        ErrorMessage="Please enter TAL." InitialValue="" ValidationGroup="Submitt">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr style="padding-bottom: 5px;">
                                <td>ITS SMP
                                </td>
                                <td>
                                    <asp:TextBox ID="txtITSSMP" runat="server" Width="300px" CssClass="RequiredField" MaxLength="100">
                                    </asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvITSSMP" runat="server" ControlToValidate="txtITSSMP"
                                        ErrorMessage="Please enter ITS SMP." InitialValue="" ValidationGroup="Submitt">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr style="vertical-align: top; padding-bottom: 5px;">
                                <td>Client Attendee/s Including Role (if known)
                                </td>
                                <td>
                                    <asp:TextBox ID="txtClientAttendee" TextMode="MultiLine" runat="server" Width="300px"
                                        Height="60px" onkeypress="return truncMaxLength(this,'1000');" onblur="truncMaxLength(this,'1000');"
                                        CssClass="RequiredField" MaxLength="100">
                                    </asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvClientAttendee" runat="server" ControlToValidate="txtClientAttendee"
                                        ErrorMessage="Please enter client attendee." ValidationGroup="Submitt">*</asp:RequiredFieldValidator>
                                    &nbsp;&nbsp;&nbsp;
                                </td>
                            </tr>
                            <tr style="padding-bottom: 5px;">
                                <td>Participant
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlParticipant" runat="server" Width="305px" DataTextField="Name"
                                        DataValueField="EventAttendeeID" CssClass="RequiredField">
                                    </asp:DropDownList>
                                    <asp:RequiredFieldValidator ID="rfvParticipant" runat="server" ControlToValidate="ddlParticipant"
                                        ErrorMessage="Please select participant." ValidationGroup="Submitt">*</asp:RequiredFieldValidator>
                                    &nbsp;&nbsp;&nbsp;
                                </td>
                            </tr>
                            <tr style="padding-bottom: 5px;">
                                <td>Country
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlCountry" runat="server" Width="305px" DataTextField="Name"
                                        DataValueField="Value" CssClass="RequiredField">
                                    </asp:DropDownList>
                                    <asp:RequiredFieldValidator ID="rqFCountry" runat="server" ControlToValidate="ddlCountry"
                                        ErrorMessage="Select Country" InitialValue="0" ValidationGroup="Submitt">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr style="padding-bottom: 5px;">
                                <td>SubserviceLine
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlSSL" runat="server" Width="305px" DataTextField="Name" DataValueField="Value"
                                        CssClass="RequiredField">
                                    </asp:DropDownList>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="ddlSSL"
                                        ErrorMessage="Select SubserviceLine" InitialValue="0" ValidationGroup="Submitt">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr style="vertical-align: top; padding-bottom: 5px;">
                                <td>Primary Business Objectives / Challenges raised &nbsp;
                                </td>
                                <td>
                                    <asp:TextBox ID="txtbusinessobj" TextMode="MultiLine" runat="server" Width="300px"
                                        Height="60px" onkeypress="return truncMaxLength(this,'1000');" onblur="truncMaxLength(this,'1000');"
                                        CssClass="RequiredField">
                                    </asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtbusinessobj"
                                        ErrorMessage="Primary Business Objective should not be empty" ValidationGroup="Submitt">*</asp:RequiredFieldValidator>
                                    &nbsp;&nbsp;&nbsp;
                                </td>
                            </tr>
                            <tr style="vertical-align: top; padding-bottom: 5px;">
                                <td>Primary Tax Issues discussed
                                </td>
                                <td>
                                    <asp:TextBox ID="txtTaxIssues" runat="server" TextMode="MultiLine" Width="300px"
                                        Height="60px" onkeypress="return truncMaxLength(this,'1000');" onblur="truncMaxLength(this,'1000');">
                                    </asp:TextBox>
                                </td>
                            </tr>
                            <tr style="padding-bottom: 5px;">
                                <td>Opportunity / Project Identified
                                </td>
                                <td>
                                    <table>
                                        <tr>
                                            <td>
                                                <asp:RadioButtonList ID="rdblistOpportunityProject" runat="server" RepeatColumns="2"
                                                    CssClass="RequiredField">
                                                    <asp:ListItem Text="Yes" Value="Yes">
                                                    </asp:ListItem>
                                                    <asp:ListItem Text="No" Value="No">
                                                    </asp:ListItem>
                                                </asp:RadioButtonList>
                                            </td>
                                            <td></td>
                                            <td>
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="rdblistOpportunityProject"
                                                    ErrorMessage="Select Opportunity/Project Identified" ValidationGroup="Submitt">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr style="vertical-align: top; padding-bottom: 5px;">
                                <td>Description of the Opportunity/Project&nbsp;
                                </td>
                                <td>
                                    <asp:TextBox ID="txtDescoftheOpportunity" CssClass="RequiredField" runat="server"
                                        TextMode="MultiLine" Width="300px" Height="60px" onkeypress="return truncMaxLength(this,'1000');"
                                        onblur="truncMaxLength(this,'1000');">
                                    </asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtDescoftheOpportunity"
                                        ErrorMessage="Description of the Opportunity?project should not be empty" ValidationGroup="Submitt">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr style="padding-bottom: 5px;">
                                <td>Stage
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlStage" runat="server" Width="305px" DataTextField="Name"
                                        DataValueField="Value" CssClass="RequiredField">
                                    </asp:DropDownList>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="ddlStage"
                                        ErrorMessage="Select Stage" InitialValue="0" ValidationGroup="Submitt">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr style="vertical-align: top; padding-bottom: 5px;">
                                <td>Potential Tax Fees in US Dollars
                                </td>
                                <td>
                                    <asp:TextBox ID="txtPotentialTaxFees" runat="server" CssClass="RequiredField" TextMode="MultiLine"
                                        Width="300px" Height="60px" onkeypress="return truncMaxLength(this,'1000');"
                                        onblur="truncMaxLength(this,'1000');"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtPotentialTaxFees"
                                        ErrorMessage="Potential Tax Fees in US Dollars should not be empty" ValidationGroup="Submitt">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr style="padding-bottom: 5px;">
                                <td>Probablility of a Win
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlProbablility" runat="server" DataTextField="Name" DataValueField="Value"
                                        Width="305px" CssClass="RequiredField">
                                    </asp:DropDownList>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="ddlProbablility"
                                        ErrorMessage="Select Probablity of Win" InitialValue="0" ValidationGroup="Submitt">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr style="padding-bottom: 5px;">
                                <td>Expected Timeframe
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlTimeframe" runat="server" DataTextField="Name" DataValueField="Value"
                                        Width="305px" CssClass="RequiredField">
                                    </asp:DropDownList>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="ddlTimeframe"
                                        ErrorMessage="Select Expected Timeframe" InitialValue="0" ValidationGroup="Submitt">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr style="vertical-align: top; padding-bottom: 5px;">
                                <td>Next Steps
                                </td>
                                <td>
                                    <asp:TextBox ID="txtNextSteps" runat="server" TextMode="MultiLine"
                                        Width="300px" Height="60px" onkeypress="return truncMaxLength(this,'1000');"
                                        onblur="truncMaxLength(this,'1000');" CssClass="RequiredField"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="txtNextSteps"
                                        ErrorMessage="Next Steps should not be empty" ValidationGroup="Submitt">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr style="vertical-align: top; padding-bottom: 5px;">
                                <td>Responsibility for taking it forward
                                </td>
                                <td>
                                    <asp:TextBox ID="txtResponsibility" runat="server" TextMode="MultiLine" Width="300px"
                                        Height="60px" onkeypress="return truncMaxLength(this,'1000');" onblur="truncMaxLength(this,'1000');" CssClass="RequiredField"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="txtResponsibility"
                                        ErrorMessage="Responsibility for taking it forward should not be empty" ValidationGroup="Submitt">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr style="vertical-align: top; padding-bottom: 5px;">
                                <td>Additonal Information
                                </td>
                                <td>
                                    <asp:TextBox ID="txtAdditonalInfo" runat="server" TextMode="MultiLine" Width="300px"
                                        Height="60px" onkeypress="return truncMaxLength(this,'1000');" onblur="truncMaxLength(this,'1000');" CssClass="RequiredField"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="txtAdditonalInfo"
                                        ErrorMessage="Additional Information should not be empty" ValidationGroup="Submitt">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr style="padding-bottom: 5px; padding-top: 10px;">
                                <td colspan="2" align="left">
                                    <asp:Button ID="btnSumbit" runat="server" Text="Submit" CssClass="Button" Width="120px"
                                        ValidationGroup="Submitt" />
                                    <asp:Button ID="btnCancel" runat="server" Text="Clear All" CssClass="Button" Width="120px" />
                                    <asp:Label ID="lblMessage" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr style="margin-right: 10px; padding-bottom: 10px;">
                                <td colspan="2" align="center">
                                    <div style="width: 100%; overflow-x: scroll; overflow-y: hidden; padding-bottom: 10px;">
                                        <asp:GridView runat="server" ID="wgFeedbackDetails_1" EnableModelValidation="True" AutoGenerateColumns="False" AllowPaging="True" OnPageIndexChanging="wgFeedbackDetails_1_PageIndexChanging">

                                            <PagerSettings FirstPageImageUrl="~/_includes/images/RightFade.gif" LastPageImageUrl="~/_includes/images/RightFade.gif" NextPageImageUrl="~/_includes/images/LeafImage.gif" PreviousPageImageUrl="~/_includes/images/LeafImage.gif" />
                                            <PagerStyle BackColor="#D7D7D7" BorderStyle="Solid" BorderWidth="1px" />

                                            <RowStyle BackColor="White" BorderColor="White" Font-Names="Arial" Font-Size="X-Small" />

                                            <HeaderStyle CssClass="HeaderStyle" />

                                            <AlternatingRowStyle BackColor="azure" />

                                            <Columns>

                                                <asp:TemplateField HeaderText="Company Name">
                                                    
                                                    <ItemTemplate>
                                                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("Company") %>'></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle Width="150px" />
                                                </asp:TemplateField>

                                                <asp:BoundField DataField="Host" HeaderText="Host" ItemStyle-Width="150px">
                                                <ItemStyle Width="150px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Tal" HeaderText="Tal" ItemStyle-Width="150px">
                                                <ItemStyle Width="150px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="ITSSMP" HeaderText="ITS SMP" ItemStyle-Width="150px">
                                                <ItemStyle Width="150px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="ClientAttendees" HeaderText="Client Attendees" ItemStyle-Width="230px">
                                                <ItemStyle Width="230px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Participant" HeaderText="Participant" ItemStyle-Width="150px">
                                                <ItemStyle Width="150px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Country" HeaderText="Country" ItemStyle-Width="150px">
                                                <ItemStyle Width="150px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="SubServiceLine" HeaderText="Sub-ServiceLine" ItemStyle-Width="150px">
                                                <ItemStyle Width="150px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="PrimObjectivesChallenges" HeaderText="Primary Business Objectives" ItemStyle-Width="220px">
                                                <ItemStyle Width="220px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="PrimTaxIssues" HeaderText="Primary Tax Issues Discussed" ItemStyle-Width="220px">
                                                <ItemStyle Width="220px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="OpportunityProjectIdentified" HeaderText="Opportunity / Project Identified" ItemStyle-Width="220px">
                                                <ItemStyle Width="220px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="DescrOpportunityProject" HeaderText="Description Of The Opportunity/Project" ItemStyle-Width="220px">
                                                <ItemStyle Width="220px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Stage" HeaderText="Stage" ItemStyle-Width="150px">
                                                <ItemStyle Width="150px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="PotentialTaxFees" HeaderText="Potential Tax Fees" ItemStyle-Width="150px">
                                                <ItemStyle Width="150px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="ProbabilityOfWin" HeaderText="Probablility Of A Win" ItemStyle-Width="150px">
                                                <ItemStyle Width="150px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="ExpectedTimeframe" HeaderText="Expected Timeframe" ItemStyle-Width="150px">
                                                <ItemStyle Width="150px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="NextSteps" HeaderText="Next Steps" ItemStyle-Width="200px">
                                                <ItemStyle Width="200px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="ResponsibilityTakeForward" HeaderText="Responsibility For Taking It Forward" ItemStyle-Width="220px">
                                                <ItemStyle Width="220px" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="AdditionalInformation" HeaderText="Additional Information" ItemStyle-Width="220px">
                                                <ItemStyle Width="220px" />
                                                </asp:BoundField>

                                            </Columns>
                                        </asp:GridView>

                                    </div>                                
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
        <script type="text/javascript" language="javascript">
            function truncMaxLength(txtControl, maxLength) {
                try {
                    if (txtControl.value.length > maxLength) {
                        txtControl.value = txtControl.value.substring(0, maxLength);
                        alert("Maximum charactors allowed is - " + maxLength.toString());
                        return false;
                    }
                }
                catch (e) {
                }
            }

            //        function Close() {
            //            window.close();
            //            return true;
            //        }

        </script>
    </form>
</body>
</html>
